package com.car.car.exception;


import com.car.car.enums.ResultEnums;

public class SellException extends RuntimeException {

    private Integer code;

    public SellException(ResultEnums resultEnums) {
       super(resultEnums.getMessage());
       this.code = resultEnums.getCode();
    }

    public SellException(Integer code, String message) {
        super(message);
        this.code = code;
    }
}
